/* eslint valid-jsdoc: "off" */

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
  /**
   * built-in config
   * @type {Egg.EggAppConfig}
   **/
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1715245999956_5729_dev';

  config.cluster = {
    listen: {
      path: '',
      port: 5000,
      hostname: '127.0.0.1',
    },
  };

  config.sm = {
    key: '0123456789abcdeffedcba9876543210',
    mode: 'cbc',
    iv: 'fedcba98765432100123456789abcdef',
  };

  config.email = {
    host: 'smtp.163.com',
    port: 465,
    secure: true,
    auth: {
      user: 'gurenxujiu@163.com',
      pass: 'VGMEMLBGTVSSUZHJ',
    },
    debug: true,
  };

  config.jwt = {
    secret: '123123123',
  };

  config.health = 5001;
  config.ws = 5002;


  // add your user config here
  const userConfig = {
    // myAppName: 'egg',
  };

  return {
    ...config,
    ...userConfig,
  };
};
